/*
 * drive.h
 *
 *  Created on: 2012.12.02.
 *      Author: Peter
 */

#ifndef DRIVE_H_
#define DRIVE_H_

/******************************************************************************
*								    Macros
******************************************************************************/
#define PWM_PERIOD_DRIVE 42000
#define PWM_DRIVE_PRESC 80
/* Default value for drive PWM*/
#define PWM_DRIVE_CCR1 38850//39900//31500 //15:38850


void InitDrivePeriphs(void);
void SetDrivePWM(int16_t speed);


#endif /* DRIVE_H_ */
